package com.itany.corejava.day07;

public class Test6 {

    public static void main(String[] args) {

        Person p=new Baby();
        p.setName("abc");
        p.move();

        Plain plain=new Plain();

        p.move(plain);



    }

}
